package com.WISSC.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 授权机构信息表
 * </p>
 *
 * @author 张凯
 * @since 2019-05-06
 */
@ApiModel(value = "Authorization对象", description = "授权机构信息表")
public class Authorization extends Model<Authorization> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "单位名称")
    @TableField("unit_name")
    private String unitName;

    @ApiModelProperty(value = "合作开始时间")
    @TableField("start_time")
    private Long startTime;

    @ApiModelProperty(value = "合作结束时间")
    @TableField("end_time")
    private Long endTime;

    @ApiModelProperty(value = "地区")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "授权类型")
    @TableField("grant_type")
    private Integer grantType;

    @ApiModelProperty(value = "等级")
    @TableField("grant_level")
    private Integer grantLevel;

    @ApiModelProperty(value = "结构简介")
    @TableField("brief")
    private String brief;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "机构图片地址")
    @TableField(exist = false )
    private String imagUrl;

    @ApiModelProperty(value = "类型")
    @TableField("type" )
    private Integer type;

    @ApiModelProperty(value = "1.新增 2.修改 3删除 4当前最新数据")
    @TableField("flag" )
    private Integer flag;

    @ApiModelProperty(value = "修改前的id")
    @TableField("before_id")
    private Long beforeId;
    //图片总和
    @TableField(exist = false )
    private Integer countPerson;

    @ApiModelProperty(value = "机构logo图片地址")
    @TableField("logo_url")
    private String logoUrl;

    public Long getBeforeId() {
        return beforeId;
    }

    public void setBeforeId(Long beforeId) {
        this.beforeId = beforeId;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getCountPerson() {
        return countPerson;
    }

    public void setCountPerson(Integer countPerson) {
        this.countPerson = countPerson;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public Long getStartTime() {
        return startTime;
    }

    public void setStartTime(Long startTime) {
        this.startTime = startTime;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Integer getGrantType() {
        return grantType;
    }

    public void setGrantType(Integer grantType) {
        this.grantType = grantType;
    }

    public Integer getGrantLevel() {
        return grantLevel;
    }

    public void setGrantLevel(Integer grantLevel) {
        this.grantLevel = grantLevel;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getImagUrl() {
        return imagUrl;
    }

    public void setImagUrl(String imagUrl) {
        this.imagUrl = imagUrl;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Authorization{" +
                "id=" + id +
                ", unitName='" + unitName + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", city='" + city + '\'' +
                ", grantType=" + grantType +
                ", grantLevel=" + grantLevel +
                ", brief='" + brief + '\'' +
                ", createTime=" + createTime +
                ", imagUrl='" + imagUrl + '\'' +
                ", type=" + type +
                ", flag=" + flag +
                ", countPerson=" + countPerson +
                ", logoUrl='" + logoUrl + '\'' +
                '}';
    }
}
